﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using hachiModel;

namespace Hachi.Controllers
{
    public class SlideShowController : BaseController
    {
        public SlideShowController()
        { 
        }

        public List<CF_SlideShowDetail> getSlideShow(int slideShowCategoryID, string lang)
        {
            return en.CF_SlideShowDetail.Where(d => d.SlideCategoryID == slideShowCategoryID && d.Language == lang && d.Enable).OrderBy(o => o.Sort).ToList();
        }
        

    }
}